KeyboardHandler

This class controls callbacks related to keyboard buttons state, as its downtime, uptime, its current state, modifier key states and callbacks assigned to specific keys.

Controls what text has been typed in the current frame, useful for Label or Text objects.

Constructors

this
this()
Undocumented in source.

Members

Functions

getKeyDownTime
float getKeyDownTime(char key)
Undocumented in source. Be warned that the author may not have intended to support it.
getKeyUpTime
float getKeyUpTime(char key)
Undocumented in source. Be warned that the author may not have intended to support it.
getMetadata
AHipButtonMetadata getMetadata(char key)
Undocumented in source. Be warned that the author may not have intended to support it.
handleKeyDown
void handleKeyDown(HipKey key)

Updates the metadata

handleKeyUp
void handleKeyUp(HipKey key)
Undocumented in source. Be warned that the author may not have intended to support it.
isKeyJustPressed
bool isKeyJustPressed(char key)
Undocumented in source. Be warned that the author may not have intended to support it.
isKeyJustReleased
bool isKeyJustReleased(char key)
Undocumented in source. Be warned that the author may not have intended to support it.
isKeyPressed
bool isKeyPressed(char key)
Undocumented in source. Be warned that the author may not have intended to support it.
postUpdate
void postUpdate()
Undocumented in source. Be warned that the author may not have intended to support it.
update
void update()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

getInputText
string getInputText(KeyboardLayout layout)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta